import java.util.Scanner;

public class java2024_5_13 {
    //    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        System.out.print("请输入两个整数:");
//        int number1 = scanner.nextInt();
//        int number2 = scanner.nextInt();
//
//        int[] array1 = new int[number1];
//        int[] array2 = new int[number2];
//        for (int i = 0; i < array1.length; i++) {
//            array1[i] = scanner.nextInt();
//        }
//        for (int i = 0; i < array2.length; i++) {
//            array2[i] = scanner.nextInt();
//        }
//
//        int[] array3 = new int[number1 + number2];
//        int i = 0;
//        int j = 0;
//        int k = 0;
//        while (i < array1.length && j < array2.length) {
//            if (array1[i] > array2[j]) {
//                array3[k++] = array2[j++];
//            } else {
//                array3[k++] = array1[i++];
//            }
//        }
//        while (i < array1.length) {
//            array3[k++] = array1[i++];
//        }
//        while (j < array2.length) {
//            array3[k++] = array2[j++];
//        }
//
//        for (int m = 0; m < array3.length; m++) {
//            System.out.print(array3[m] + " ");
//        }
//    }
    public static void main(String[] args) {
//        double[] array = new double[2];
//        double[0] = celsius+273.15;
//        double[1] = celsius*1.8+32;
        int[] nums = {1, 15, 3, 4};
        int number1 = 0;
        for (int i = 0; i < nums.length; i++) {
            number1 += number1[i];
        }

        int number2 = 0;
        for (int i = 0; i < nums.length; i++) {
            while (nums[i] != 0) {
                number2 += nums[i] % 10;
                nums[i] /= 10;
            }
        }

        if (number1 > number2) {
            return number1 - number2;
        } else {
            return number2 - number1;
        }
    }
}
